using System;
using Server;
using Server.Items;
using Server.Targets;

namespace Server.Items
{
	public abstract class BaseKnife : BaseWeapon
	{
		public override int DefHitSound { get { return 0x23B; } }
		public override int DefMissSound { get { return 0x238; } }

		public override SkillName DefSkill { get { return SkillName.Sword; } }
		public override WeaponType DefType { get { return WeaponType.Slashing; } }
		public override WeaponAnimation DefAnimation { get { return WeaponAnimation.Slash1H; } }

		public BaseKnife(int itemID)
			: base(itemID)
		{
		}

		public BaseKnife(Serial serial)
			: base(serial)
		{
		}

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			writer.Write((int)0); // version
		}

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.ReadInt();
		}

		public override void OnDoubleClick(Mobile from)
		{
			from.SendLocalizedMessage(1010018); // What do you want to use this item on?

			from.Target = new BladedItemTarget(this);
		}
	}
}